#include <iostream>
using namespace std;

int max(int a,int b)
{
    return a>b?a:b;
}

int min(int a,int b)
{
    return a>b?b:a;
}

int main( )
{
    int(*p)(int a,int b);
    int i;
    p=max;
    cout<<p(3,6)<<endl;

    p=min;
    cout<<p(4,9)<<endl;

    cin>>i;
    return 0;
}